<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>INSPINIA | Login</title>

    <link href="__ADMIN_CSS__/bootstrap.min.css" rel="stylesheet">
    <link href="__ADMIN_AWESOME__/css/font-awesome.css" rel="stylesheet">
    <link href="__ADMIN_CSS__/animate.css" rel="stylesheet">
    <link href="__ADMIN_CSS__/style.css" rel="stylesheet">

</head>

<body class="gray-bg">

    <div class="middle-box text-center loginscreen animated fadeInDown">
        <div>
            <div>
                <h3 class="logo-name">IN+</h3>
            </div>
            <form class="m-t" role="form" action="__SELF__" method="post">
                <div class="form-group">
                    <input type="text" name="username" class="form-control" placeholder="用户名" required="用户名不能为空">
                </div>
                <div class="form-group">
                    <input type="text" name="password" class="form-control" placeholder="密码" required="密码不能为空">
                </div>
                <button type="submit" class="btn btn-primary block full-width m-b">Login</button>

               <!--  <a href="#"><small>Forgot password?</small></a>
                <p class="text-muted text-center"><small>Do not have an account?</small></p>
                <a class="btn btn-sm btn-white btn-block" href="register.html">Create an account</a> -->
            </form>
<!--             <p class="m-t"> <small>Inspinia we app framework base on Bootstrap 3 &copy; 2014</small> </p> -->
        </div>
    </div>

    <!-- Mainly scripts -->
    <script src="__ADMIN_JS__/jquery-2.1.1.js"></script>
    <script src="__ADMIN_JS__/bootstrap.min.js"></script>
    <script type="text/javascript" src="__ADMIN_JS__/message.js"></script>
        <script type="text/javascript">
        var msg = new $.Messager('ddfas', {placement: 'center',time: 10000});
                    msg.show();
    </script>
    <script type="text/javascript">
        $("form").submit(function(){
            var self = $(this);
            $.post(self.attr("action"), self.serialize(), success, "json");
            return false;

            function success(data){
                if(data.status){
                    window.location.href = data.url;
                } else {
                    var msg = new $.Messager(data.info, {placement: 'bottom',time: 1000});
                    msg.show();
                }
            }
        });
    </script>

</body>

</html>
